const userRouter = require("./user.js");
const shopRouter = require("./shop.js");

function useRouter(app) {
  app.use(userRouter.routes(), userRouter.allowedMethods());
  app.use(shopRouter.routes(), shopRouter.allowedMethods());
}

module.exports = useRouter;
